added validation for product updating
minor edits