add validator
example of using validator
Merge pull request #13 from eliostvs/master

Validator for choices.