const userEmail = {emailAddress: email} const { email } = req.body; const foundUser = await User.find({ emailAddress: email }); foundUser.length > 0 ? "email already exists" : "email does not exist"