         false
 
     signonWidget: ->
-      if @userSignedIn() is true
+      if @userState is true
         @showUserBox()
       else
         @showLoginAndRegister()


    update: ->
      @setLocalData("lp-uname", window.lpLoggedInUsername)
      @signonWidget()
      # @displayUnreadMessageCount()

    userAvatar: ->

      signOutUrl: 'https://secure.lonelyplanet.com/sign-in/logout'

    constructor: ->
      @userState = @userSignedIn()
      @widget = $('nav.user-nav')
      @options = Authentication.options
      @signonWidget()
