//check email / username exist or not
let userExist = await User.findOne({$or: [
{email: req.body.email},
{username: req.body.username}
]});
if (userExist) {
return res.status(400).json({
success: false,
message: ‘User already exist in same email’
});
}