implemented reset password email functionality