Fix register and password
Merge pull request #441 from liuchuangww/user

Fix register and password