adding validations for product model