login template functional