         if @is_submittable()
             <Button onClick={@save_new_password} bsStyle='success'>
                 Change password
-            </Button>
+                </Button>
         else
             <Button disabled bsStyle='success'>Change password</Button>
 

        style             : rtypes.object

    render : ->
        if not @props.show_confirmation
            <Button
                disabled={@props.show_confirmation}
                className='pull-right'
                bsStyle='danger'
                style={@props.style}
                onClick=@props.initial_click>
            <Icon name='trash' /> Delete Account
            </Button>
        else
            <DeleteAccountConfirmation
                confirm_click={@props.confirm_click}
                cancel_click={@props.cancel_click}/>

# Concious choice to make them actually click the confirm delete button.
DeleteAccountConfirmation = rclass

        if @state.error
            <ErrorDisplay error={@state.error} onClose={=>@setState(error:'')} style={marginTop:'15px'} />

    render_edit : ->
        <Well style={marginTop: '3ex'}>
            New email address
            <Input
                autoFocus
                type        = 'email_address'
                ref         = 'email_address'
                value       = {@state.email_address}
                placeholder = 'user@example.com'
                onChange    = {=>@setState(email_address : @refs.email_address.getValue())}
            />
            Current password
            <form onSubmit={(e)=>e.preventDefault();if @is_submittable() then @save_editing()}>
                <Input
                    type        = 'password'
                    ref         = 'password'
                    value       = {@state.password}
                    placeholder = 'Current password'
                    onChange    = {=>@setState(password : @refs.password.getValue())}
                />
            </form>
            <ButtonToolbar>
                {@change_button()}
                <Button bsStyle='default' onClick={@cancel_editing}>Cancel</Button>
            </ButtonToolbar>
            {@render_error()}
            {@render_saving()}
        </Well>

    render_saving : ->
        if @state.state == 'saving'
