I am trying to login to a portal, but the portal has a bug where if i login the first time using my username and password it will show login fail. So i have to enter my credentials again and login and do this steps multiple time until i can login. So i am trying to use PAD to do this where i want it to keep on trying to login until successful.
For example, this is my current flow:

i want it to go back to step 5 and try again if step 7 fails. How can i do this? Please advice. Thank you.