Added textFieldDidBeginEditing handler