easiest way to get around this is to create anew page, add the login form to the body and add the Authenticate user behavior to it.
then Use Framework Builder to add the login page as a plugin to your pages.
framework builder plugins will automatically add the authenticate user behavior code to the correct place in your page.