I get the above error when I click the login button. The javascript is for the login validity, to display error message when username/password is not entered.