added validation to products