fix login/logout in navbar