{{if $errors}}
<div class="ErrorBox">
<ul>
{{if $errors.UserName eq 1}}
<li>Username cannot be left blank</li>
{{/if}}
 {{if $errors.UserPassword eq 1}}
<li>Password cannot be left blank </li>{{/if}}
{{if $errors.UserName eq 2}}<li>Username and password do not match </li>{{/if}}
</ul>
</div>
{{/if}}