fixed bug in nav bar that gave and error if not logged in