fixed login/logout in the layout