<inputtype="email"class="form-control {{ 'is-invalid' if 'email' in error_messages else '' }}"placeholder="Email"name="email"id="email"value="{{ request.form.email }}"required>
{% if 'email' in error_messages %}
<divclass="invalid-feedback">
<iclass="fas fa-exclamation-triangle"></i>
{{ error_messages['email'] }}
</div>
{% endif %}
</div>
</div>
<pclass="login-box-msg">Enter your account details below</p>
<divclass="form-group">
<divclass="input-group">
<divclass="input-group-prepend">
<spanclass="input-group-text">
<iclass="fas fa-user"></i>
</span>
</div>
<inputtype="text"class="form-control {{ 'is-invalid' if 'username' in error_messages else '' }}"placeholder="Username"name="username"id="username"value="{{ request.form.username }}"required>
{% if 'username' in error_messages %}
<divclass="invalid-feedback">
<iclass="fas fa-exclamation-triangle"></i>
{{ error_messages['username'] }}
</div>
{% endif %}
</div>
</div>
<divclass="form-group">
<divclass="input-group">
<divclass="input-group-prepend">
<spanclass="input-group-text">
<iclass="fas fa-lock"></i>
</span>
</div>
<inputtype="password"class="form-control {{ 'is-invalid' if 'password' in error_messages else '' }}"placeholder="Password"id="password"name="password"required>
{% if 'password' in error_messages %}
<divclass="invalid-feedback">
<iclass="fas fa-exclamation-triangle"></i>
{{ error_messages['password'] }}
</div>
{% endif %}
</div>
</div>
<divclass="form-group">
<divclass="input-group">
<divclass="input-group-prepend">
<spanclass="input-group-text">
<iclass="fas fa-lock"></i>
</span>
</div>
<inputtype="password"class="form-control {{ 'is-invalid' if 'rpassword' in error_messages else '' }}"placeholder="Retype password"id="rpassword"name="rpassword"required>
{% if 'rpassword' in error_messages %}
<divclass="invalid-feedback">
<iclass="fas fa-exclamation-triangle"></i>
{{ error_messages['rpassword'] }}
</div>
{% endif %}
</div>
</div>
{% if captcha_enable %}
<pclass="login-box-msg">Please complete the CAPTCHA below</p>
<divclass="form-group">
{{ captcha() }}
<divclass="input-group">
<divclass="input-group-prepend">
<spanclass="input-group-text">
<iclass="fas fa-shield-alt"></i>
</span>
</div>
<inputtype="text"class="form-control {{ 'is-invalid' if 'captcha_result' in error_messages else '' }}"placeholder="CAPTCHA"id="captcha"name="captcha"required>