Try adding HTML / JS like this beneath your code:
<input type="hidden" id="myAnchorClicked" value=""/>
<script>
$(document).on('click', '#accountLink > a', function(){
$('#myAnchorClicked').val(1);
})
</script>
Then this custom JavaScript verification:
if (!$('#myAnchorClicked').val()) {
strErrorMessage = 'Error message here.';
}