Fixed the password reset and implemented the mailer