Added login and mailer