         if username?
           options = { account, username, clientId, isRegistration: yes }
           @changeUsernameByAccount options, (err, newToken_) =>
-            return callback err  if err?
+            return callback err  if err
             newToken = newToken_
             queue.next()
         else process.nextTick -> queue.next()

    newToken  = null
    invite    = null
    user      = null

    queue = [
      =>
        @validateAll userFormData, (err) =>
          return callback err  if err?
          queue.next()
      =>
        # password is autogenerated before here

        JAccount.emit "AccountRegistered", account, referrer
        queue.next()
      =>
        callback quotaExceedErr, newToken
        queue.next()
    ]

