adding trigger login twig function
fixing error of throwing AuthError