Add modal dialog for validation failure.