Open the file /etc/lightdm/lightdm.conf
sudo gedit /etc/lightdm/lightdm.conf
Modify the value of the string "autologin-user" with the required user name
Ex:
autologin-user=pedro
Save the file Reboot/ restart
sudo gedit /etc/lightdm/lightdm.conf
autologin-user=pedro
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd