Fix some bug and add user admin
Merge pull request #229 from liuchuangww/user

Fix some bug and add user admin