Now the password is reset to empty when the authentication fails.