       callback null
 
   @changeUsernameByAccount = (options, callback)->
-    { account, username, clientId, isRegistration } = options
+    { account, username, clientId, isRegistration, groupName } = options
     account.changeUsername { username, isRegistration }, (err) =>
       return callback err   if err?
       return callback null  unless clientId?

          queue.next()

      ->
        _client =
          connection : delegate : account
          context    : group    : 'koding'

        ComputeProvider.createGroupStack _client, (err)->
          if err?

          return callback createKodingError "Could not update your session"

        if session?
          session.update { $set: { clientId: newToken, username, groupName }}, (err) ->
            return callback err  if err?
            callback null, newToken
        else
