auto-logout header after login and direct call to logout works, navbar fix