method used to clear text field