added quantity to cart line items and prevented access to invalid carts