Fix register
Merge pull request #560 from liuchuangww/user

Fix register