prevent adding invalid prod to cart