Fix bug where navbar didnt update on login/logout