can now login and logout fluidly from the nav bar