I have narrowed it down to these lines of code, any ideas?
The error occurs with the placement of the buttons within the <div>.
Code:
{if $main ne "login_incorrect" and $main ne "antibot_error" and $main ne "disabled" or $config.Security.use_secure_login_page eq "Y"}
{capture name=menu}
<form action="{$auth_form_url}/include/login.php" method="post" name="authform" class="item">
<input type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}" />
{if $config.Security.use_secure_login_page eq "Y"}
<div class="login-buttons">
{include file="customer/buttons/secure_login.tpl"}
{include file="customer/buttons/create_profile_menu.tpl" additional_button_class="menu-button"}
</div>
{/if}
<div class="button-row recovery">
<a href="help.php?section=Password_Recovery">{$lng.lbl_recover_password}</a>
</div>
</form>
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_authentication content=$smarty.capture.menu additional_class="menu-auth"}
{/if}