Fixed bug in password reset sequence