Made a small mistake on checking the password of the user