Added validation in product model