User registration and login in NodeJS, using Passport.js