value of text input field erases