Added delegates to textfield and action to button