users.update(req.body, req.user.id)
    .then(updatedUser => {
      res.json({ updatedUser });
    })
    .catch((error) => {