Ensure the correct login template is loaded

See #1