Node.js: Session, Registry and user updates. Fully working implementation