Getting the password to be checked properly