did some validation in the product class