           k.build ComponentNavigation,
             cursors:
               currentUser: that.getCursor('currentUser')
-              token: that.getCursor('token')
               path: that.getCursor('path')
           k.div {className: 'container'}, ->
             k.div {className: 'row'}, ->

  validateLogin
  classNames
  urlUsers
) ->
  React.createClass
    mixins: [Cursors]

      promise = login(that.state.page.data)
      promise
        .then (data) ->
          rememberToken data.token
          that.update
            # navigate
            path: {$set: urlUsers.stringify()}
            currentUser: {$set: data.user}
            page:
              alert: {$set: null}
        .catch (error) ->
          # TODO extract this
          if error.status is 422
            that.update {page: {alert: {$set: error.response}}}
