Fixed a password reset bug