Corrected editInventory not showing correct quantity error.