INTRODUCTION
I1 The Utah Uniform Securities Act governs the licensing, regulation, and discipline of professionals in the securities industry. The Act provides two fora for disciplining professionals: agency adjudications and district court actions.
2 In this appeal, the Division of Securities (the Division) argues that under the statute, it can only obtain limited remedies from each forum. Thus, the Division asks us to overturn the district court's order enjoining the Division from pursuing disciplinary action against appellee Richard W. Mack's securities Hcense in an agency adjudication after a district court dismissed with prejudice an earlier action based on the same facts. We hold that the Division's challenge to the injunction was procedurally proper but that Mack is not required to exhaust the administrative process, as the process itself constitutes the harm of which Mack complains. We also hold that claim preclusion bars the administrative action. Accordingly, we affirm the district court's order.
BACKGROUND
3 In February 2005, the Division brought a civil action in the district court against Richard Mack and other parties. With respect to Mr. Mack, the Division sought sane-tions and a fine against Mack as the branch manager and a general principal of Walnut Street Securities, Inc. for failing to supervise a securities agent employed by the securities firm.
T4 This failure, the Division alleged, violated Utah Code section 61-1-1, the anti-fraud provision of the Utah Uniform Securities Act. Specifically, the Division alleged that Mack failed to detect "red flags" in the agent's behavior, to adopt and implement adequate supervisory and compliance procedures, to reasonably supervise the agent in a way that would detect or prevent a violation of securities laws, to investigate discrepancies between oral and written reports regarding outside business activity provided by the agent, to maintain records of efforts to inquire into the agent's outside business activities, and to reasonably carry out policies and procedures of Walnut Street Securities' compliance manual. As a remedy, the Division requested a judgment that Mack violated the Utah Uniform Securities Act, a permanent injunction enjoining him from violating the Act, a restitution order, a fine, attorney fees, and costs and expenses.
T5 Mack moved to dismiss the complaint pursuant to rule 12(b)(6) of the Utah Rules of Civil Procedure. Mack argued that the acts alleged by the Division were unconnected with the sale of securities and, if true, constituted mere negligent supervision, which would not support a finding of fraud because fraud requires willful conduct. Additionally, Mack argued that the Utah Uniform Seeurities Act did not allow the Division to seek restitution on behalf of private plaintiffs.
T6 After hearing argument from the Division, Mack, and other defendants, the district court determined that the Division had failed to allege willful conduct or a causal nexus between Mack's actions and the unlawful sale of securities. The court therefore held that the Division failed to plead a cause of action based on fraud. Additionally, the district court held that restitution was not a remedy available to the Division under the Utah Uniform Securities Act. Thus, on July 14, 2006, the court dismissed the Division's claims. However, the district court specifically gave the Division thirty days from the dismissal to file an amended complaint "if it [could] identify appropriate facts and different grounds to support a claim for injunctive relief as it pertain{ed] to the ... [dJefendants' HEceensure based on alleged failure to supervise." Order, at 3, State v. Walnut St. Sec., Inc., No. 050500310 (5th Dist. July 14, 2006). The Division did not file an amended complaint, and thus on August 25, 2006, a final order was entered dismissing with prejudice the Division's claims against Mack. The Division did not appeal this decision.
*198 T 7 Instead, on August 3, 2006, the Division filed an administrative action with the director of the Division of Securities seeking a revocation of Walnut Street Securities and Mack's securities licenses, a bar from the Utah securities industry, and a $300,000 fine. In this administrative action, the Division alleged the same facts relating to Mack's failure to supervise as it had alleged in the civil complaint. The Division alleged that Mack's omissions violated Utah Code section 61-1-6(2)(j), the National Association of Securities Dealers Conduct rule 3010, and Utah Administrative Code rule 164-6-1g(C)(28).
18 In October 2006, Mack filed a complaint for injunctive relief in the district court. Mack argued that res judicata barred the Division's administrative action and sought a temporary restraining order and both a preliminary and a permanent injunetion to enforce this bar. Mack also sought preliminary and permanent injunctive relief to enjoin the Division from disseminating any information to the public or to any source that might disseminate information to the public regarding the administrative action.
T9 The district court denied Mack's request for a temporary restraining order and conducted a hearing to address whether res judicata barred the administrative action and whether Mack was required to exhaust administrative remedies by raising the issues first in the administrative proceeding. After argument, the district court issued a memorandum decision holding that the administrative action was barred by res judicata because (1) it involved the same parties, (2) the district court in the earlier civil action had the authority to hear all claims that were and should have been presented, and (8) the earlier case ended in a final judgment on the merits. Further, the district court held that the res judicata bar rendered the exhaustion of administrative remedies requirement unnecessary. The court found that Mack was likely to prevail on the merits of his request for an injunction, but it declined to address the other injunction requirements during that hearing.
110 Approximately one month after the district court entered its Memorandum Decision, the Division submitted a motion to dismiss based on rule 12(b)(6) of the Utah Rules of Civil Procedure. The Division argued that Mack failed to state an underlying cause of action to support a grant of injunctive relief because res judicata is a defense, not a cause of action, and rule 65A of the Utah Rules of Civil Procedure does not create a substantive right. The district court scheduled a hearing to address the Division's motion to dismiss and Mack's requested injunctive relief. Before the hearing, the Division stipulated to a finding of irreparable harm. Additionally, before the hearing, the parties resolved the dispute regarding the Division's communications about Mack. Therefore, the hearing focused on the Division's motion to dismiss for failure to state a claim. Following the December 2006 hearing, the Court entered an order denying the Division's motion to dismiss and granting an injunction barring the administrative proceeding against Mack based on res judicata. The Division appealed the district court's order. We have jurisdiction pursuant to Utah Code section 78A, 3-102(8)(J) (2008).
ANALYSIS
1 11 The Division asks us to address three questions: first, whether the district court properly denied the Division's motion to dismiss; second, whether the district court properly exeused Mack from exhausting administrative remedies; and third, whether the district court was correct in determining that the Division's administrative action was barred by res judicata. We affirm the decision of the district court on all issues.
I. THE DISTRICT COURT PROPERLY DENIED THE DIVISIONS MOTION TO DISMISS
$12 The propriety of a denial of a Rule 12(b)(6) motion is a legal determination that we review for correctness. Summit Water Distrib. Co. v. Summit County,
A. The Division Did Not Waive Its Defense for Failure to State a Claim nor Did It Invite Error by Failing to Bring the Motion to Dismiss Earlier in the Proceedings
T13 Mack argues that the district court should have denied the Division's motion to dismiss because the Division waived the right to bring the motion by not including it in an answer or responsive pleading. Further, Mack argues that by allowing the district court to first consider the merits of Mack's res judicata claim, the Division waived its claim and invited error. We disagree. The Division did not waive its rule 12(b)(6) claim nor invite error because a party may raise a failure to state a claim defense in later pleadings. Additionally, the Division did not invite error because it moved for dismissal for failure to state a claim before the case concluded, which provided the court with the opportunity to address the issue.
{14 By moving for dismissal for failure to state a claim before the final hearing, the Division avoided waiving the defense. Normally, a party waives all defenses not raised in a responsive pleading, such as an answer or reply. Utah R. Civ. P. 12(b) and (h). A defense of failure to state a claim, however, falls under a procedural exception and may be raised any time before the court or jury determines the validity of a party's claim. Utah R. Civ. P. 12(b) ("[Thhe defense of failure to state a claim upon which relief can be granted ... may also be made by a later pleading ... or at the trial on the merits."). In other words, "[iJssues brought under the exception of Rule 12(h) may be raised before or during trial. However, Rule 12(h) certainly does not mean that failure to state a claim can be raised for the first time on appeal." Smith v. Vuicich,
"15 The invited error doctrine precludes an appellate court from considering an issue on appeal that was not only unobjected to in the trial court, but was in fact submitted by argument, thereby depriving the court of the opportunity to correct any error. State v. Winfield,
B. The District Court Correctly Denied the Division's Motion Because Mack's Complaint and Accompanying Request for Injunction Adequately Alerted the Division of His Claims
116 The Division argues that the district court erred in denying its motion to dismiss because to request injunctive relief a party must allege a legal claim and Mack failed to do so. We disagree; instead, we find that Mack's Complaint for Injunctive Relief sufficiently alleged a claim upon which relief could be granted.
T17 A complaint that alleges the facts and sets forth the legal basis for an available legal remedy adequately states a claim upon which relief can be granted. Rule 12(b)(6) reflects Utah's adoption of notice pleading and, therefore, relies on rule 8 of the Utah Rules of Civil Procedure. Rule 8 requires a complaint to contain a "short plain statement of the claim showing that the pleader is entitled to relief." Utah R. Civ. P. 8. Thus, under rules 8 and 12, a complaint must provide " 'fair notice of the nature and basis or grounds of the claim and a general
*200
indication of the type of litigation involved," " Blackham v. Snelgrove,
118 In this case, Mack's complaint contained sufficient facts and allegations to notify the Division of the grounds for his claim and the injunctive relief sought. In particular, Mack's complaint recounted the factual basis for the earlier district court action, the claims brought, and the court's final disposition of the claim. Similarly, Mack identified the facts underlying the administrative proceeding. Mack clearly claimed that he was entitled to temporary and permanent injunctive relief because based on the facts alleged, res judicata barred the administrative action. Additionally, in the memorandum supporting Mack's request for an immediate order of injunctive relief, 1 Mack alleged that the Division, in the action in the administrative forum, was attempting to relitigate issues and claims previously adjudicated by the district court and was thus subjecting Mack to duplicative and harassing litigation that was barred by res judicata.
119 The Division argues that despite the adequately detailed allegations, Mack's claim did not meet the requirements of rules 8 and 12 because Mack relied on either his request for injunctive relief or res judicata as his claim for relief and neither is a "cause of action."
2
This argument interprets the requirements to state a claim too narrowly. A party has a claim if the alleged facts " 'give rise to a right enforceable in the courts'" Swainston v. Intermountain Health Care, Inc.,
20 The Division also argues that even if Mack alleged a sufficient claim for legal relief, he requested the wrong equitable remedy for his alleged injury. The Division suggests that extraordinary relief under rule 65B was instead the proper procedural vehicle. Although rule 65B relief might indeed have been available, this fact does not warrant a dismissal of Mack's complaint. As discussed above, Mack alleged sufficient facts to support the legal elements required for his claim. Under our liberal construction of rule 8, we find this was sufficient; further, the facts alleged in Mack's complaint were certainly enough for the Division to defend against Mack's claim that the administrative action was judicially barred. In fact, the
*201
Division appears to have responded to Mack's claim as if he had advanced it under rule 65B. Thus, under rule 15, the trial court and this court could treat the complaint as a rule 65B action, rather than a standard injunction action. In particular, under rule 15, the fact that Mack never amended the complaint to seek rule 65B relief cannot affect the outcome of the court's granting 65B relief. Utah R. Civ. P. 15(b) ("When issues not raised by the parties are tried by express or implied consent of the parties, they shall be treated in all respects as if they had been raised in the pleadings.... [FJailure to so amend does not affect the result of the trial of these issues."); see also Gill,
4 21 In conclusion, while it is possible that Mack could have chosen a better procedural vehicle to bring this claim, the court did not err by denying the Division's motion to dismiss. Liberally construing the requirements of rules 8 and 12, a court should not dismiss a plaintiffs complaint for inartful pleading. In this case, because Mack provided adequate notice of the basis for and type of claim he was bringing, and because it appeared that relief could be granted, we hold that his complaint satisfied the requirements of rules 8 and 12. The district court did not err by denying the Division's motion to dismiss.
II. THE DISTRICT COURT PROPERLY GRANTED A PERMANENT INJUNCTION BECAUSE LEGAL AND ADMINISTRATIVE REMEDIES WERE INADEQUATE
122 We next address whether the district court properly granted injunctive relief or if instead Mack was required to first exhaust his administrative remedies before seeking injunctive relief. We review a grant of equitable relief for an abuse of discretion. Harline v. Campbell,
$28 A court may only grant a permanent injunction when legal remedies are inadequate. Johnson v. Hermes Assocs., Ltd.,
124 In the present case, Mack alleges that defending his interests in an administrative process will result in irreparable harm to his reputation, as well as require him to incur extensive expenses and expend great amounts of time. The only available legal remedy for such damage would be a monetary award. However, as Mack alleges, a monetary award could not compensate for the damage to his reputation or the unnecessary stress and trouble he would encounter if the administrative hearing was later found to have been legally barred. Moreover, to obtain a monetary award, Mack would be required to see the administrative action to its conclusion, which could involve a trial de novo and a possible appeal. See Utah Code Ann. 63G-4-402 (Supp.2008). In this case, the process of pursuing his res judicata arguments in the administrative hearing itself constitutes the harm for which Mack seeks relief. If he is required to submit to that harm before being permitted to seek a remedy for it, the inadequacy of the remedy seems self-evident. See Cont'l Can Co. v.
*202
Marshall,
1125 The Division, however, argues that a legal remedy was not only an adequate remedy, but that Mack was required to exhaust the administrative process that would itself occasion the monetary damages. We disagree. While it is true that both statute and case law strongly favor exhaustion of remedies, exhaustion is not required in this case. In legal actions based on the Utah Uniform Securities Act, a party is required to exhaust all administrative remedies when challenging the final decision of an administrative agency. See Utah Code Ann. § 61-1-18.6 (Supp. 2008) (incorporating the Utah Administrative Procedures Act); Id. § 68G-4-401 (Supp. 2008) (allowing judicial review of a final agency action "only after exhausting all administrative remedies available"). But Mack is not seeking review of a final agency decision; he is instead attempting to prevent what he claims is a duplicative and unlawful proceeding. Thus, the exhaustion requirement does not apply to Mack's claim.
III. CLAIM PRECLUSION BARS THE DIVISION FROM PURSUING THE ADMINISTRATIVE ACTION AGAINST MACK
126 Whether res judicata, and more specifically claim preclusion, "bars an action presents a question of law" that we review for correctness. Macris & Assocs. Inc. v. Neways, Inc.,
127 Under the Utah Uniform Securities Act the Division has three avenues for enforcing the provisions of the Act: equitable administrative proceedings, and criminal actions. At issue in this case are the first two forms of enforcement. Utah Code section 61-1-20 allows the Division to use adjudicative procedures in the administrative forum to petition the Division of Seeu-rities director to enter cease and desist orders, impose fines, and bar persons from the securities industry in the state of Utah. Utah Code Ann. § 61-1-20(1) (2006). Under the same section, the Division may also bring an action in district court to enforce compliance with the Act or any rule made pursuant to the Act. Id. § 61-1-20(2). Subsection 2 grants the district court jurisdiction to issue equitable relief, order disgorgement and rescission, impose fines, or "enter any other relief the court considers just." Id. Additionally, Utah Code section 61-1-6 allows the director through administrative proceedings to sanction persons registered with the Division of Securities by suspending and revoking securities licenses, barring a person from the securities industry in Utah, restricting the responsibilities of registered persons, and imposing fines. Id. § 61-1-6(1) (2006 & Supp.2008). 3 These sanctions are allowed for enumerated acts such as failing to supervise agents or employees. Id. § 61-1-6(@)(). Section 61-1-6.5 also gives the courts jurisdiction to order the Division to "withhold, suspend, restrict, or reinstate the use of securities licenses issued under" the Act. Id. § 61-1-6.5 (2006). actions,
28 In this case, the Division first pursued a civil action against Mack, requesting the district court to enter a judgment finding that Mack violated the Utah Uniform Securities Act, permanently enjoining Mack from violating the Act, ordering restitution, and imposing a fine based on the Division's allegation that Mack violated the Act's prohibition of fraud by failing to supervise his employees. The district court denied this relief but invited the Division to amend its complaint to bring any other claims it could based on the same facts relating to the licen-sure of Mack. The Division declined to do so even though section 61-1-6.5 gives the dis *203 trict court clear authority to order the revocation of Mack's license. The Division chose instead to employ the administrative forum and requested the director in the administrative proceedings to revoke Mack's license, to bar him from the securities industry in Utah, and to impose a fine. Mack argues that this administrative action is barred by res judica-ta. We agree.
129 "The doctrine of res judicata embraces two distinct branches: claim preclusion and issue preclusion." Macris & Assocs.,
First, both cases must involve the same parties or their privies. Second, the claim that is alleged to be barred must have been presented in the first suit or be one that could and should have been raised in the first action. Third, the first suit must have resulted in a final judgment on the merits.
Snyder v. Murray City Corp.,
€30 Claims or causes of action are the same as those brought or that could have been brought in the first action if they arise from the same operative facts, or in other words from the same transaction. See Restatement (Second) of Judgments § 24 (1982). Previously we have held that two causes of action are the same if they rest on the same "state of facts," and the evidence "necessary to sustain the two causes of action" is of the same kind or character. Schaer v. State,
[ 31 The Division argues that it could not have brought its claim for negligent supervision in the district court action, even if it is the same claim under the operative fact test, because the district court did not have subject matter jurisdiction. According to the Division the district court does not have subject matter jurisdiction over revoking or suspending securities licenses because the legislature provided exclusive fora for specific claims under the Securities Act.
182 A claim is not the same claim, in terms of claim preclusion, if it could not have been brought in the first action, and, of course, a party may not bring a claim in a first action if the court lacks subject matter jurisdiction. SMP, Inc. v. Kirkman,
¶ 33 A district court has subject matter jurisdiction over a legal claim unless adjudicative authority for that claim is specifically delegated to an administrative agency. District courts have general jurisdiction, which provides them with broad adjudicative authority. Utah Code Ann. § 78A-5-101 and -102 (2008). Only in instances where the legislature grants exclusive jurisdiction to an administrative agency, or otherwise explicitly restricts the courts' jurisdiction, does the district court lack subject matter jurisdiction. See, e.g., Beaver County v. Qwest, Inc.,
¶ 34 Reviewing both the grant of authority to the administrative agency and the district court, and also the Securities Act as a whole, we conclude that the remedies provided therein are not exclusive to one forum and therefore the district court did not lack subject matter jurisdiction to hear the licensing issues. The Division argues that *205 the district court does not have jurisdiction because negligent supervision is addressed under the section providing the director with authority to suspend or revoke securities licenses. See Utah Code Ann. § 61-1-6(). However, the negligent supervision subsection's placement in the statute does not grant the administrative agency with exclusive authority over such issues. Instead, the statute also grants the district court with broad authority, allowing the court to revoke or suspend a license and to prohibit any securities practices through an order to the Division, Utah Code Ann. §§ 61-1-6(2)(d) and -6.5, or "enter any other relief the court considers just" in order to "enforce compliance with [the Securities Act] or any rule or order under {the Securities Act]." Id. § 61-I1-20(2)(viii) (2006). This power is granted "in addition to" the sanction authority given to the director in section 61-1-6. Id. § 61-1-20. Thus, with these overlapping grants of authority, the Securities Act provides concurrent jurisdiction in the district court and the Division director to enforce the Securities Act. Because the Division does not have exclusive authority to revoke or suspend securities licenses for negligent supervision, it could have brought the licensing issues related to Mr. Mack's supervision of his employee in the district court action, and it is now barred from doing so in an administrative action.
CONCLUSION
1 35 We hold that the district court did not err in granting injunctive relief. While the Division properly brought a motion to dismiss, the district court did not err in denying it when Mack adequately alleged facts that put the Division on notice of the basis and grounds for his claims. From these allegations it appeared that there was an available remedy for Mack's injury. Additionally, Mack was not required to first exhaust administrative or other legal remedies when such remedies were themselves the harm he sought to prevent and therefore were inadequate. Finally, the district court properly held that claim preclusion barred the Divi-gion's licensing claim brought in the administrative action because the district court had authority to revoke a securities license and provide all the relief available in the administrative action; therefore, the Division's administrative claims could have been brought in the district court action. Accordingly, we affirm the order of the district court.
Notes
. A memorandum or brief can be used to clarify the allegations in a complaint. See Pegram v. Herdrich,
. The Division argued at length that Mack failed to allege an underlying claim to support an injunction pursuant to rule 65A. However, the district court denied Mack's request for a temporary injunction before the state filed its motion to dismiss. Thus, in this appeal, the Division challenges only the grant of a permanent injunction and all arguments related to preliminary injunctions under rule 65A are irrelevant.
. Although Utah Code section 61-1-6 was amended in 2008, no substantive changes were made; therefore we cite to the most current version of the statute. See 2008 Utah Laws 3336-37.
