login and logout in topbar and in lightbox