feat (digits validator): add support for digits validator

Implementation and test for digits validator. Fixes #2.