Added validation for product model
Fixed validation for product model