fixing Error to validate