add interface for users reset password and some bug fix