Fix range check in validID
Merge pull request #1 from blang/feat_validid

Fix range check in validID