     user           = null
     quotaExceedErr = null
     recoveryToken  = null
+    error          = null
 
     queue = [
       =>

          queue.next()
      =>
        @addToGroups account, invite, user.email, (err) =>
          # for the cases where the quota exceeded, we must progress on registering user
          # and then show the quota exceeded message to new user
          if err
            if err.code is 999 then quotaExceedErr = err
            else return callback err
          queue.next()
      =>
        @removeFromGuestsGroup account, (err) =>

  @addToGroups = (account, invite, email, callback)->
    @addToGroup account, 'koding', email, null, (err)=>
      if err then callback err
      else if invite?.group and invite.group isnt 'koding'
        @addToGroup account, invite.group, email, invite, callback
      else
        callback null
