add logOut function to navbar