switch frontend login to twig template engine