If the cause is lightdm, install gdm and run dpkg-reconfigure lightdm to set GDM as the default display manager.
If the cause is lightdm, install gdm and run dpkg-reconfigure lightdm to set GDM as the default display manager.