input text is displayed on console when the button search is pressed