window.location.reload();
                })
                .fail(function(jqxhr, status, error) {
                    show_errors("#reset-error", error.messages);
                    $('#reset-password').focus();
                 });
            return false;
        });

    $('#change-form')
        .submit(function() {
            var password = $('#change-password').val();
            var confirm = $('#change-confirm').val();
            if(password != confirm) {
                var errors = [ $("#err