moved email_backend check to bottom of page