User authentication in  Node.js + AngularJS + MongoDB application using Passport