Template with login and logout