Improved the clear textfield method