     # subscribe to koding marketing mailings or not
     body.emailFrequency.marketing = newsletter is 'true' # convert string boolean to boolean
 
-    JUser.convert client, body, (err, result) ->
+    createGroup = (err, result) ->
 
       if err?
 

          # handle the request with an HTTP redirect:
          res.redirect 301, redirect


# convertToArray converts given comma separated string value into cleaned,
# trimmed, lowercased, unified array of string

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

  redirect ?= '/'
