REST API in Nodejs with Mongoose and Passport integration