Server security
User authentication
Add details to MongoDB
Token generation
REST api
Change order of REST api and token generation