I am making a security login where users can create accounts and log in. If the user enters the wrong information, they get redirected to another page where the input borders are red with a warning in red text informing the user that the information given is wrong and to retry. I plan not to allow the user to retry typing information if they have been redirected to the same page 3 times. This way, people would not spam passwords to get into an account.
Please let me know if there is an easier way to do all this.