There are 2 UITextFiled, username and password.
Using the function:
func textFieldDidEndEditing(_ textField: UITextField, reason: UITextField.DidEndEdi