Changes error checking in city name

Minor fix, two lines