added to validate script return  on error