I am trying to build a sequence diagram where I show that a user can:
- Log in to an application if their details are correct. If details are correct they are redirected to the main dashboard
- if the details are incorrect they are redirected to the registration page where their details are then checked to see if a user is already registered under the entered email. If not already registered a user is created and they are redirected to main dashboard
- if already registered then a "username or password incorrect" message is shown
I am not sure if this is the correct or best way to show registration and login, I feel like the diagram is not reading correctly. Does this explain the scenario well? or is there more I should add to this.
Initial diagram:
Revised following the answer:
Does this revised diagram explain the scenario better?




