The System.User object:
Is used by the platform to record FailedLogins.
The default is that a user is blocked after 3 attempts. https://docs.mendix.com/refguide/login-behavior/
You could create a microflow to change the behaviour and keep track of the FailedLoging in your module. Don’t forget to unblock the user automatically to continue the user to log on. But also think about why you would change the standard behaviour. But that is up to you to decide.
Look in the Marketplace module Administration that is in each App by default. You might find valuable inspiration here.
Go Make It