         ([a-z0-9\-]+)$          # Git branch (usually master)
       ///i
 
-    [url, remoteUser, app, branch] = (urlParser.exec url) or []
-
-    unless remoteUser
+    [url, githubUsername, app, branch] = (urlParser.exec url) or []
+
+    unless githubUsername
       return callback new KodingError "URL is not allowed."
 
     account.fetchUser (err, user)->

          "There is no linked GitHub account with this account."

      {username} = user.foreignAuth.github
      if username is not remoteUser
        return callback new KodingError "Remote username mismatch."

      # TODO - Add existence check from remote url ~ GG
      callback null, urls, yes

  # TODO ~ GG

  @publish = permit 'create apps',

    success: (client, data, callback)->

      console.log "publishing the JNewApp"

      {connection:{delegate}} = client
      {profile} = delegate

      if validationError = checkData data, profile
        return callback validationError

      validateUrl delegate, data.url, (err, urls, githubVerified)=>
        return callback err  if err

        data.urls = urls
        data.name = capitalize @slugify data.name
        {name, manifest:{authorNick}} = data

        # Overwrite the user/app information in manifest
        data.manifest.name       = data.name

            version     : data.manifest.version
            originId    : delegate.getId()
            group       : client.context.group
            status      : if details?.githubVerified? \
                          then 'github-verified' else 'not-verified'

          if app
