inventory validation