   ComponentNavigation
   login
   validateLogin
+  classNames
   # getCursorStates
 ) ->
   React.createClass

                      id: 'inputIdentifier'
                      placeholder: 'Email or username'
                      name: 'identifier'
                      value: that.state.page.data.identifier
                      onChange: that.handleChange
                    }
                  k.div {className: 'form-group'}, ->
                    k.label {htmlFor: 'inputPassword'}, 'Password'
                    k.input {
                      type: 'password',

      # errors = validateLogin nextState.page.data
      # if errors
      # this.update {page: {errors: {$set: errors}}}
    hasSuccess: (name) ->
      this.state.page.data[name]? and not this.state.page.errors?[name]?
    hasError: (name) ->
      this.hasBeenClicked() and this.state.page.errors?[name]?
    hasFeedback: (name) ->
      this.hasSuccess(name) or this.hasError(name)
    hasErrors: ->
      this.state.page.errors?
    hasBeenClicked: ->
      this.state.page.hasBeenClicked is true
    render: ->
      that = this
      console.log 'ComponentLogin', 'render', 'this.state', this.state
      page = that.state.page
      reactKup (k) ->
        k.div {className: 'ComponentLogin'}, ->
          unless page.data?
            return
          k.build ComponentNavigation
          k.div {className: 'container'}, ->
