Split out language code validation to separate method