Streamlined getting user data and logout now goes to login page.