<#import "template.ftl" as layout> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('firstName','lastName','email','username','password','password-confirm'); section> <#if section = "header"> ${msg("registerTitle")} <#elseif section = "form">
<#if messagesPerField.existsError('firstName')> ${kcSanitize(messagesPerField.get('firstName'))?no_esc}
<#if messagesPerField.existsError('lastName')> ${kcSanitize(messagesPerField.get('lastName'))?no_esc}
<#if messagesPerField.existsError('email')> ${kcSanitize(messagesPerField.get('email'))?no_esc}
<#if !realm.registrationEmailAsUsername>
<#if messagesPerField.existsError('username')> ${kcSanitize(messagesPerField.get('username'))?no_esc}
<#if passwordRequired??>
<#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.get('password'))?no_esc}
<#if messagesPerField.existsError('password-confirm')> ${kcSanitize(messagesPerField.get('password-confirm'))?no_esc}
<#if captchaRequired??>
<#if recaptchaRequired??>