     {badLoginChars, loginTaken, passwordTooShort, passwordsDontMatch} = @state
     email = @refs.email?.getDOMNode().value
 
-    <InPlaceForm>
+    <InPlaceForm onSubmit={@handleSubmit}>
       <div>
         <label>
           <div>User name</div>

React = require 'react'
InPlaceForm = require '../components/in-place-form'
LoadingIndicator = require '../components/loading-indicator'

CHECKING = 'CHECKING'



    console.log (badLoginChars?.length is 0), (loginTaken is false), (passwordsDontMatch is false), agreesToPrivacyPolicy
    (badLoginChars?.length is 0) and (loginTaken is false) and (passwordsDontMatch is false) and agreesToPrivacyPolicy

  handleSubmit: ->
    login = @refs.login.getDOMNode().value
    password = @refs.password.getDOMNode().value
    confirmedPassword = @refs.confirmedPassword.getDOMNode().value
    email = @refs.email.getDOMNode().value
    realName = @refs.realName.getDOMNode().value
    agreesToPrivacyPolicy = @refs.agreesToPrivacyPolicy.getDOMNode().checked

    dispatch 'users:create', {login, password, confirmedPassword, email, realName, agreesToPrivacyPolicy}
