implementation of textFielddidbeginediting