Using multi-step form + Server side Validate > How to focus on invalid step / input?

I’m working on a registering form with 5 steps.
I setted up 2 validate in my Server Action (with conditions below):

Everything works well, BUT i would like to display the specific step depending on the validate feedback, so the user can see the validate message and input to correct whithout clicking on previous steps.

I tried adding a set value but this does not work.
What is the best way to proceed?

Many thanks

Community Page
Last updated: