Change user_id to null value and get rid of isLoggedIn
This way we can just test for user_id to see if a user
is logged in
Change apiEndpoint var to api_host