Added validation to product model