Refactored some codes
Changed user schema to include names
Merge pull request #121 from xue0chao/master

Adding auth functionality