Restful authentication system based on Node.js Express