Add quantity to cart and better error handling in cart.