Add user validator
Merge pull request #597 from liuchuangww/user

Add user validator