solves password reset issue