I dont see a problem with the login form? see my attached screen shot.
the headers already sent error happens if there is output between php code blocks. see the following thread for details:
http://www.webassist.com/forums/posts.php?id=19285
the error is saying the problem occurs at line 5.