cleanup login template and fix base.html