config login helper and mailer