Log in
function validateForm() { var x = document.forms["myForm"]["username"].value; var y = document.forms["myForm"]["pass"].value; if (x == "" || y == "") { alert("Fields must be filled out"); return false; } if ( x == "driva@admin.com" && y == "driva1234") { return true; }else { alert("invalid credentials"); return false; } }