How to login logout with nodejs