Cookie based authentication application using Node.js and Connect