Move login template to app authentication