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

          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
  rememberToken
) ->
  React.createClass
    mixins: [Cursors]
