Type the following command:
Then, use your arrow keys to navigate to Enable Boot to Desktop and press enter. Select the Desktop login option and press enter.
Reboot and you’re good to go!
Alternatively, you can make the same change without using the raspi-config GUI by running the following command:
sudo update-rc.d lightdm disable