     # is group creator already a member
     alreadyMember }              = body
   { JUser, JGroup, JInvitation } = koding.models
+  body.groupName                 = slug
 
   clientId                       = getClientId req, res
 

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

  return  if validateGroupData(body, res) isnt yes


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