             let deleteAction = UIAlertAction(title: "RemoveSShKeys".localize(), style: .destructive) { _ in
                 self.passwordStore.removeGitSSHKeys()
                 SharedDefaults[.gitSSHKeySource] = nil
-                if let sshLabel = self.sshLabel {
-                    sshLabel.isEnabled = false
-                    self.checkAuthenticationMethod()
-                }
+                self.sshLabel?.isEnabled = false
+                self.updateAuthenticationMethodCheckView(for: .password)
             }
             optionMenu.addAction(deleteAction)
         }

        }
    }

    private func checkAuthenticationMethod() {
        let passwordCheckView = authPasswordCell.viewWithTag(1001)!
        let sshKeyCheckView = authSSHKeyCell.viewWithTag(1001)!

        switch self.gitAuthenticationMethod {
        case .password:
            passwordCheckView.isHidden = false
            sshKeyCheckView.isHidden = true

    }

    private func showGitURLFormatHelp() {
        Utils.alert(title: "Git URL Format", message: "https://example.com[:port]/project.git\nssh://[user@]server[:port]/project.git\n[user@]server:project.git (no scheme)", controller: self)
    }

    override func viewDidAppear(_ animated: Bool) {
