Update validator to check heading order; tests passing