Textfield clearing handled correctly