Add basic validation.