validate the name of a city