Loads user data on page load and adds logout functionality