Added password reset functionality.
Updated password reset functionality so that it actually works.