added validation to product entry