added isLoggedIn for checkout