loot limit functionality added and flash error messages