adds validations to products