Support country code in hash

created function that retrieves a country code from the hash on the URL
and checks whether it’s valid