sudo raspi-config
Step 2) Select on Enable Boot to Desktop
Step 3) Select on Yes
Step 4) Tap the Right Button Arrow Key twice and select Finish
Step 5) Allow it to do a Reboot
This trick allows you to skip the process of typing in your username and password, as well as the startx command.