await UserModel.find(
{ username: uBody.username },
(err, user) => {
if (err) {
error = "smth wrong";
}
if (user.length != 0) {
if (user[0].username === uBody.username) {
error = "username taken";
}
if (user[0].email === uBody.email) {
console.log(user[0].username);
error = "email taken";
}
}
}
);