improved the cart and added error message for incorrect carts