change the place where we raise validation error