 
   client              = {}
   context             = { group: slug }
+  client.context      = context
   clientIPAddress     = req.headers['x-forwarded-for'] || req.connection.remoteAddress
   # parsing booling from string
   alreadyMember       = alreadyMember is 'true'

    # is group creator already a member
    alreadyMember }              = body
  { JUser, JGroup, JInvitation } = koding.models

  clientId                       = getClientId req, res


  # set session token for later usage down the line
  owner                      = result.account
  redirect                  ?= '/'
  client.sessionToken        = result.newToken or result.replacementToken
  client.connection.delegate = result.account

  return  if validateGroupData(body, res) isnt yes
