-implementing password reset validator