fix problem with login template