Add self-defined types for input data validation.