Uniqueness check added for inventory id