Textinput working as expected