title: jQuery basic form validation if or
body: <p>this is not working and i cant really see anything wrong with it, looks straightforward enough:</p>
  
  <pre><code>            $("#formLogin").submit(function(){
                  var username = $("#username").val();
                  var password = $("#password").val();
                  if (username == ' ' || password == ' '){
                      return false;
                  }
                  else return true;
              });
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Its still submitting the form even if the fields are empty</p>