Fix login template implementation.