           mainController.loginScreen.hidden = no
 
           recoveryToken = decodeURIComponent recoveryToken
-          KD.remote.api.JPasswordRecovery.validate recoveryToken, (err, isValid)=>
+          {JPasswordRecovery} = KD.remote.api
+          JPasswordRecovery.validate recoveryToken, (err, isValid)=>
             if err or !isValid
               new KDNotificationView
                 title   : 'Something went wrong.'


    clear = @bound 'clear'

    openGroupAdminDashboard = =>
      @getSingleton('groupsController').openAdminDashboard arguments...

    requireLogin =(fn)->
      mainController.accountReady ->
        # console.log 'faafafaf'

    @on 'AlreadyHere', ->
      new KDNotificationView title: "You're already here!"

  listen:->
    super
    unless @userRoute
      @handleRoute @defaultRoute,
        shouldPushState: yes
        replaceState: yes

