           res.redirect 301, redirect
 
     if alreadyMember
-    then JUser.login client.sessionToken, req.body, createGroup
-    else JUser.convert client, req.body, createGroup
+    then JUser.login client.sessionToken, body, createGroup
+    else JUser.convert client, body, createGroup
 
 
 


    client.clientIP = (clientIPAddress.split ',')[0]

    body.emailFrequency or= {}
    # subscribe to koding marketing mailings or not
    body.emailFrequency.marketing = newsletter is 'true' # convert string boolean to boolean

    createGroup = (err, result) ->

    domains
    # newsletter holds announcements config.
    newsletter
    # is group creator already a member
    alreadyMember
  } = body

  redirect ?= '/'
  context   = { group: slug }
  clientId  = getClientId req, res

  return handleClientIdNotFound res, req  unless clientId

