redirect after succesful login
pass to sharejs an already connected mongodb
minor