I removed a few of the extra unneeded parentheses, added a ELSE condition, added a couple variables and added a logical "OR" operator, so that both of your form fields must be validated correctly; in order, to submit your form.