You have to have only one account, no password, and the guest account must be turned off.
Or:
1. Click Start, click Run, and type control userpasswords2.
2. Clear the Users must enter a username and password to use this computer check box.
3. Click Apply.
4. Enter the user name and password you wish to automatically log on with, and then click OK.
5. Click OK again and you're all done.
If you want to mess with the registry here are the instructions:
http://www.winguides.com/registry/display.php/13/
http://www.winguides.com/registry/display.php/780/