     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

  action: ->
    if Meteor.status().connected is no
      @render 'reconnect'
    else @render()
  onBeforeAction: ->
    if getUser()
      if amIValid()

  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
