added mailer functionality
Fixed reset password route.