bug fix for reset password