i've got an issue with the login form.
when i go to http://mysite/admin i only see this text: "Enter your email address and password to access the CMS." but no login form.
only by reloading the page i see the form.
this is only on my custom template, not with the black candy original template.
Yes, the line numbers are different. :-) Replace your line 344 with the line in green on http://open.silverstripe.com/attachment/ticket/3750/Security-Form%20Code%20Should%20Not%20Go%20in%20Content%20Variable.patch.
Also, you'll want to have both the $Content and $Form variables in your template code. After looking at your post again, it sounds like your problem may be the fact that you don't have $Form in your template. The patch I mentioned fixes another--but somewhat related--issue.