rd').val();
            var confirm = $('#reset-confirm').val();
            if(password != confirm) {
                var errors = [ $("#errorReason-PasswordMatch").text() ];
                show_errors("#reset-error", errors);
                $('#reset-confirm').focus();
                return false;
            }
            resetPassword(token, password)
                .done(function() {
                    $('#reset-error').slideUp();
                    window.location.hash = '';
                    