Input validation for ISMN.