check for error when doing a password reset