 
     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}

      <div>
        <label>
          <input type="checkbox" name="agrees_to_privacy_policy" ref="agreesToPrivacyPolicy" onChange={@forceUpdate.bind this, null} />
          You agree to our <a href="#">privacy policy</a> <span className="form-help">(required)</span>.
        </label>
      </div>
      <br />

    {badLoginChars, loginTaken, passwordTooShort, passwordsDontMatch} = @state
    email = @refs.email?.getDOMNode().value

    <InPlaceForm onSubmit={@handleSubmit}>
      <div>
        <label>
          <div>User name</div>
