add validation to product