adding validation to products