I'm using a server action on a register page to conditionally create db entries for a new user, and send out a verification email.
My question is: How can I display an error on the register form like: "that username is already taken," based on the internal logic of the server action.
Attached are my form and the server action respectively