 
     if password isnt passwordConfirm
       return callback createKodingError "Passwords must match!"
+
+    if locationData?
+      try { ip, country, region } = JSON.parse locationData
 
     newToken       = null
     invite         = null

    { connection, sessionToken : clientId } = client
    { delegate : account } = connection
    { nickname : oldUsername } = account.profile
    { username, email, firstName, lastName,
      agree, inviteCode, referrer, password, passwordConfirm } = userFormData

    if not firstName or firstName is "" then firstName = username

          return callback err  if err
          user = user_
          queue.next()
      ->
        if ip? and country? and region?
          locationModifier = $set    :
            "registeredFrom.ip"      : ip
            "registeredFrom.country" : country
            "registeredFrom.region"  : region
          user.update locationModifier, ->
            queue.next()
        else process.nextTick -> queue.next()
      =>
        @persistOauthInfo oldUsername, client.sessionToken, (err)=>
          return callback err  if err
