     else @render()
   onBeforeAction: ->
     if getUser()
-      if amIValid() is no then @redirect 'verifyEmail' else Router.redirect 'notes'
+      if amIValid() is no then @redirect 'verifyEmail' else @redirect 'notes'
     @next()
 
 # Page Routing

            showErr type:'success', msg:'Verification complete'
            Router.go 'home'
          @next()
    else
      @redirect 'home'
      @next()

  onBeforeAction: ->
    # Dispatch user to the right landing page based on his account status
    if getUser()
      if amIValid() is yes then @redirect 'notes' else @redirect 'verifyEmail'
    @next()
Router.route '/login', controller: guestController
Router.route '/register', controller: guestController
