Node.js server using MongoDB with user authentication