added passport and mongodb authentication