make extending validator possible
Merge pull request #2 from mocheng/fix_issue_1

make extending validator possible