Issue with the cognito module
You can't uninstall modules by deleting them. You need to run the uninstall routine. Via UI (which doesn't work in your case as you can't log in) or via CLI (Drush or Drupal Console).




Put the module back.
Uninstall it via Drush.
Log in.





drush pm:download cognito
drush pm:uninstall cognito
Log in.