adding trigger login twig function