Added validation to products model