Solved issue of inventory items not showing
Code written to show error messages.