Added validation to the product model