Fixed bug in reset password