data validation for inventory model