Added logout functionality and the user data will now be available on all pages.