Fix profile and register
Merge pull request #623 from liuchuangww/user

Fix profile and register