User authentication and management for Node.js using MongoDB