if (!user.firstname || user.firstname.length === 0) {
        errored = true;
        errors.firstname = true;
      }