Fully implemented password reset functionality