Add password validator
Merge pull request #592 from liuchuangww/user

Add password validator