Navbar and logout working