Completed functionality of password reset and confirmation email.

Completed functionality of password reset and confirmation email.