Changed error handling when inserting a country