Frontend: Refactor login template