Logout function, fixed nav highlighting