add validator
Merge pull request #19 from aaromp/master

add validator