fixing country code validation