Configure delegate on text field