Fix to combat no validation with error_reporing(0)