Begin validation function for addInventory

-See validate.php for additional comments