now clears the entered text after it is submitted