use TextInput for reading the data