Set validation when failed