Fix validator
Merge pull request #631 from liuchuangww/user

Fix validator