added validation on product model