Add Mongoose library and login handler on both App/API