check for invalid base digit