fix display problems in login template