corrected authentication, adding mailer