Have you looked at the security settings?
localhost/security
localhost/security/xamppsecurity.php
If you have looked at this, did you change the connection string in the website you are creating? From what you described, it is the authentication in the website you made that is failing.