           ip, country, region, client, invitation
           userFormData, skipAllowedDomainCheck
         }
-
         processConvert params, (err, data) ->
           return callback err  if err
           { error, newToken, user, account } = data

  @addToGroup = (account, slug, email, invitation, options, callback) ->

    [options, callback] = [{}, options]  unless callback
    { skipAllowedDomainCheck } = options

    options = { email: email, groupName: slug, skipAllowedDomainCheck }
    options.invitationToken = invitation.code if invitation?.code

    JUser.verifyEnrollmentEligibility options, (err, res) ->
      return callback err  if err

          queue.next()

      ->
        params = {
          groupName : client.context.group
          invitationToken, skipAllowedDomainCheck, email
        }

        JUser.verifyEnrollmentEligibility options, (err, res) ->
          return callback err  if err

          { isEligible, invitation } = res

          if not isEligible
            return callback new Error "you can not register to #{client.context.group}"
          queue.next()


