Login prototype using NodeJS