<div class="accountnav">
	<div class="nav">
		<h2>My Account</h2>
		<ul class="nav nav-list">
			<li class="$LinkingMode"><a href="$Link"><i class="icon icon-list"></i> Past Orders</a></li>
			<li class="$LinkingMode"><a href="$Link(editprofile)"><i class="icon icon-user"></i> Edit Profile</a></li>
			<li class="$LinkingMode"><a href="$Link(addressbook)"><i class="icon icon-book"></i> Address Book</a></li>
		</ul>
	</div>
	<div class="memberdetails">	
		<% with CurrentMember %>
			<dl>
				<dt>Name</dt><dd>$Name</dd>
				<dt>Email</dt><dd>$Email</dd>
				<dt>Member Since</dt> <dd>$Created.Nice</dd>
				<dt>Last Visit</dt> <dd>$LastVisited.Nice</dd>
				<dt>Number of orders</dt> <dd><% if PastOrders %>$PastOrders.Count<% else %>0<% end_if %></dd>
			</dl>
		<% end_with %>
	</div>
	<a></a>
	<a href="Security/logout" class="btn btn-inverted"><i class="icon icon-off"></i> Log Out</a>
</div>
<div class="accountnav">
	<div class="nav">
		<h2>My Account</h2>
		<ul class="nav nav-list">
			<li class="$LinkingMode"><a href="$Link"><i class="icon icon-list"></i> Past Orders</a></li>
			<li class="$LinkingMode"><a href="$Link(editprofile)"><i class="icon icon-user"></i> Edit Profile</a></li>
			<li class="$LinkingMode"><a href="$Link(addressbook)"><i class="icon icon-book"></i> Address Book</a></li>
			<li><a href="Security/logout"><i class="icon icon-off"></i> Log Out</a></li>
		</ul>
	</div>
	<div class="memberdetails">	
		<% with CurrentMember %>
			<dl>
				<dt>Name</dt><dd>$Name</dd>
				<dt>Email</dt><dd>$Email</dd>
				<dt>Member Since</dt> <dd>$Created.Nice</dd>
				<dt>Last Visit</dt> <dd>$LastVisited.Nice</dd>
				<dt>Number of orders</dt> <dd><% if PastOrders %>$PastOrders.Count<% else %>0<% end_if %></dd>
			</dl>
		<% end_with %>
	</div>
</div>

Simplify logout and remove bad <a>
Simplify logout and remove bad <a>