adds password reset functionality