Password reset code.
Minor changes.