Can't login after using Ubuntu Tweak

It happened to me too. use gdm to replace lightdm

  1. go to a text terminal using alt-ctrl-F1
  2. Stop LightDM with sudo stop lightdm
  3. Start GDM with sudo start gdm
  4. Run sudo dpkg-reconfigure lightdm to set the default display manager for gdm
  5. Edit /etc/X11/default-display-manager and set it to /usr/sbin/gdm if you can't run the above
  6. Restart your computer and login.