password reset functionality and tests working