Adds clear text functionality to an input box