simplify text field field_type method