create a third event if the previous two are valid
I am doing a prototype for a mobile app in Android and I have issues with events.
More exactly, on the "Registration page", I have "Submit" button on which I want to put 3 events.
1: to check if the format for email address is correct -> I have done this
2: to make sure the "password" field is completed -> I have done this
3: if those two events are done and correct, I want to add a third event which will take me to another page in the app (let's say to "sign in page");
I couldn't figure out what kind of conditions to put, so that after the first two events are checked and confirmed , the third one to be taken into consideration and applied.
Sorry for mistakes, English is not my native language.