Update Validate.php

Disabled checking php_sapi_name due to some unknown error on some other PHP environment.