another text input field function refactor