Ubuntu login screen on proper monitor

Whenever you work with an Ubuntu Gnome (using LightDM) laptop, if you plug another monitor and close the lid, the login screen may not appear on the monitor at boot. But still on the closed lid screen. This is how to fix this.