Use form in login template