Using mongo and nodejs for login