templates/login.ezt:
{use $redirUrl, $reasons}
<h1>Login</h1>
<div class="login">
<p>
You are not logged in, because:
</p>
<ul>
{foreach $reasons as $reason}
<li>{$reason}</li>
{/foreach}
</ul>
<form class="login" action='/login' method='post'>
<div>
Email: <input name='email' size='32'/><br/>
Password: <input type='password' name='password'/><br/>
<br/>
<input type='hidden' name='redirUrl' value='{$redirUrl}'/>
<input type='submit' value="Login"/>
</div>
</form>
</div>