Migrated email-based login to Twig