fixed #7, emit invalid when rule:required and data:empty
Update example
Merge for fixed #7