Hi everyone,
I have created a login screen for the users to access the application, reset password option to change the password but now I wanted to add a layer of security. On the login button of the login screen I am using the If block inside that using !IsBlank to check both the fields (username and password are not blank) and then checking if it is present in the SharePointList using Lookup. If it is True then I am navigating to Home Screen else navigating to Incorrect Details screen:
Login Button: (On-Select)

Variable created OnStart of App: (To Check wrong password attempts)

But now I want to also check for Wrong password attempts (along with checking if the details are present in the Sharepoint list)
So I did try something like this:

But here my concerns were
1. If user enters wrong password the first time then the count will be incremented by 1 and they will navigate to Incorrect Details screen which is:

but what I want is similar to the normal flow first the application should check if the details are correct: If yes go to Home screen else if user enters wrong username/password (or details which are not there in SharePointList then they should be navigated to the Incorrect Details screen). Another scenario was if the record is present in the SharePoint list but if the user enters wrong password three times then I want to show another page and lock that user out for 10 minutes.
So would like your inputs on how to achieve this.
Regards,
Sidhant.