res.cookie('id', doc._id, {
maxAge: 2592000,
path: '/',
HttpOnly: true,
secure: true });
res.send({
success: true,
result: { id: doc._id }
})