Implementing "digit" validation type