password reset functionality now working