 
           if err
 
-            logout 'error fetching account', clientId, callback
+            terminateSession 'error fetching account', clientId, callback
 
           else
             # A valid session, a valid user attached to

      else

        # So we have a session, let's check it out if its a valid one
        checkSessionValidity { session, logout, clientId }, callback


  @getHash = getHash = (value) ->


      if err

        terminateSession 'error finding user with username', clientId, callback

      else unless user

        terminateSession "no user found with #{username} and sessionId", clientId, callback

      else

