async function updateInfo (form, token) {
  return new Promise((resolve, reject) => {
    const user = jwtDecode(token)
    if (!user.id) reject('invalid token')
    const userId = user.id