     emailConflict: null
 
   componentDidMount: ->
+    auth.listen @handleAuthChange
     @handleAuthChange()
-    auth.listen @handleAuthChange
 
   componentWillUnmount: ->
     auth.stopListening @handleAuthChange


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

  handlePasswordChange: ->

counterpart = require 'counterpart'
React = require 'react'
PromiseToSetState = require '../lib/promise-to-set-state'
auth = require '../api/auth'
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
