         ->
 
           JReferralCampaign.isCampaignValid (err, res)->
+
             return console.error err  if err
             return  unless res.isValid
 

          return callback null, referral


  do ->

    JAccount.on 'AccountRegistered', (me, referrerCode)->

            return console.info "User already get the referrer"

          # get referrer
          JAccount.one 'profile.nickname': referrerUsername, (err, _referrer)->

            if err
              # if error occurred than do nothing and return
              return console.error "Error while fetching referrer", err

            unless _referrer
              # if referrer not fonud then do nothing and return
              return console.error "Referrer couldnt found"

            referrer = _referrer
            queue.next()

        ->
