       fields.firstName =
         defaultValue : givenName
         label        : 'First Name'
-        keyup        : handleKeyup
 
     if familyName
       fields.lastName =
         defaultValue : familyName
         label        : 'Last Name'
-        keyup        : handleKeyup
 
 
     @signupModal = new KDModalViewWithForms

      tabs                            :
        forms                         :
          extraInformation            :
            callback                  : =>

              {username, firstName, lastName} = @signupModal.modalTabs.forms.extraInformation.inputs

              if USERNAME_VALID and username.input.valid
                formData.username        = username.input.getValue()
                formData.passwordConfirm = formData.password
                formData.firstName = firstName?.getValue()
                formData.lastName = lastName?.getValue()

                @doRegister formData, @registerForm
                @signupModal.destroy()

            fields                    : fields
            buttons                   :
              continue                :
                title                 : 'LET\'S GO'
                style                 : 'solid green medium'
                type                  : 'submit'

    usernameView = @signupModal.modalTabs.forms.extraInformation.inputs.username
    usernameView.setOption 'stickyTooltip', yes

      button.setClass 'red'
      button.unsetClass 'green'
      button.disable()


  checkBeforeRegister: ->

    return  unless @signupModal?

    {username, firstName, lastName} = @signupModal.modalTabs.forms.extraInformation.inputs

    @unsetOption 'pendingSubmit'

    if USERNAME_VALID and username.input.valid
      formData = @signupModal.getOption "userData"

      formData.username        = username.input.getValue()
      formData.passwordConfirm = formData.password
      formData.firstName       = firstName?.getValue()
      formData.lastName        = lastName?.getValue()

      @doRegister formData, @registerForm
      @signupModal.destroy()
    else if usernameCheckTimer?
      @signupModal.setOption 'pendingSubmit', yes


  doRegister: (formData, form) ->
