adding login form after more tag message in Membership plugin

I'd like to add a little login box that appears only when content is protected by the more tag.

When i add the code to more tag section of Membership options pages, it seems to strip out certain things from the form. Making it not work.

Any idea of how to achieve this?