adding validations to the product model