[WO-573] Use pattern validation for token input