fixes a typo in the checkValidity script that was causing erroneous errors.