Modified the return of isValid method

The isValid method performed only the first "validates". Removed
"return" of foreach block, so that all validation could be performed.