Improving the validation of CartsItem