Handles submit call of "Connect" button.
public function submitConnect(array $form, FormStateInterface $form_state) {
// When this method is called the form already passed validation and we can
// assume that credentials are valid.
$this
->messenger()
->addStatus(t('Successfully connected!'));
}