Required fields on submit button code

Have you tried if (req1 === false without the quotes? Boolean is never a string, it is a boolean, true or false