Fixed a bug in the password reset code.