Implemented the reset password function.
Resolves #4.