fixed bug in product model validation