login and logout in base template