[eluser]Popcorn[/eluser]
The only reason for the login function to be returning false is if the email address doesn't exist in the users table or the passwords do not match. There could be a number of reasons for this :
Did you change the salt key in the configuration file after you registered a user? Can you register another user, then proceed to login without changing any config items and see if it happens again.
If that does not work, can you echo the $password and $dbpassword variables in the login function? Just before the $password === $dbpassword check is made.
Code:
// Debugging.
echo $password, $dbpassword;
PS : Might not of known this, but you need an 'email' to login