Added logout function and button to navbar.