Javascript is very flexible in regards to checking for "null" values. I guess you're actually looking for empty strings, in that case this simpler code should work:if(!pass || !cpass || !email || !cemail || !user){Which will check for empty strings (...