Sorry, I don't quite get it. Are you suggesting I do this?
{% if (!CurrentUser.IsAuthenticated()) {%}
<div class="foo">
<div class="bar">
{% } |(identity)GlobalAdministrator%}
This does work, but I'm not happy with it. I'm not sure what you mean by "isn't any custom markup in the form". I am using a custom layout so by definition it is custom markup. Can you explain that?