clearing the text field after retrieving the value