Added .gitignore(node_modules) and modified exports.register to set cookie for the newly registered user