Last time I used Dreamweaver for anything other then my FTP it didn't magically write code for me.. lol
It does do a lot of stuff for you but you will have some serious headaches if you do not actually know what you are doing.
I am sure you do not want to read this but Dreamweaver is a crutch that will keep you from achieving your potential. It has many features but it also lacks many features like a thinking brain and this will cause problems.
Start with looking at that tutorial and script the login system the right way by fully understanding what you are doing.
A little clarification goes a long way.