Move ValidationError to utils