fixed the reset password bug