Refactor register and build data
Merge pull request #362 from liuchuangww/user

Refactor register and build data