Add handling for validation annotation.