Functionality to generate tokens and store it in the database is up.

Completed functionality of password reset and confirmation email.