incorporated testing into password reset functionality