 counterpart = require 'counterpart'
 React = require 'react'
-Translate = require 'react-translate-component'
-apiClient = require '../api/client'
 PromiseToSetState = require '../lib/promise-to-set-state'
 auth = require '../api/auth'
-InPlaceForm = require '../components/in-place-form'
+Translate = require 'react-translate-component'
 LoadingIndicator = require '../components/loading-indicator'
 debounce = require 'debounce'
+apiClient = require '../api/client'
 
 REMOTE_CHECK_DELAY = 1000
 MIN_PASSWORD_LENGTH = 8

    agreeToPrivacyPolicy: 'You agree to our %(link)s.'
    privacyPolicy: 'privacy policy'
    register: 'Register'
    alreadySignedIn: 'Already signed in as %(name)s.'
    signOut: 'Sign out'

users = apiClient.type 'users'

module.exports = React.createClass
  displayName: 'RegisterForm'


  debouncedCheckForLoginConflict: null
  checkForLoginConflict: (login) ->
    @promiseToSetState loginConflict: apiClient.type('users').get({login}, 1).then (users) ->
      users.length isnt 0

  handlePasswordChange: ->
