fixed login in base template