Make the user input field functional