add validation and reset password