Unable to paste text into a text field