I am relatively new to NodeJS and have run into an issue. Incoming request from Angluar UI has two parameters (loginId and password) and on Node, I am reading the data from a local json file, iterating through the 'users' array and based on the matching params, I am sending the particular object in the server response. However, my logic is failing where there are multiple objects in the 'users' array and I have to send a server response for the not-matched one as well. I know that I cannot send multiple responses but that is where i need the help. Any help will be highly appreciated.

Here is the code:

```
if (jsonData.users.length > 0) {
            jsonData.users.forEach(user => {
                if ((reqBody.loginId === user.email || reqBody.loginId === user.mobile) && reqBody.password === user.password) {
                    res.send({ 'userData': user });
                } else {
                    res.json({ 'userData': 'No records found' });
                }
            })

```