Added validations to the product model