add reset password and bug fix