added focusLost to textfield