Adding validation to prices in the Product class.