added check for codes that cannot contain anything but numbers.