protectedRoute.post('/searchUsersByName', async function (req, res) {
        var data = req.body;
        var foundUsers = await User.find({
                    "username": {$regex : ".*" + data.value + ".*", '$options' : 'i'}
            }, function (err, user) {