Check for location attributes and store city name (or username).