solve req.flash