move message lookup to ValidationError