add form $invalid support
fix a mistake
Merge pull request #8 from everettqin/master

add form $invalid support