I am writing a simple login page with just a name and a password. I created some users and passwords in my database. I wrote validation code, which would show a Javascript alert when the user hits the login button. I am only showing you a sample of the code that I think may be causing the issue. Here is the Javascript, which is in my head section. I commented out certain things. The issue I have is that the Javascript is not showing the alerts after I hit the login button.
I'm trying to delete the question sorry.