<#import "template.ftl" as layout> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('username','email','firstName','lastName'); section> <#if section = "header"> ${msg("loginProfileTitle")} <#elseif section = "form">
<#if user.editUsernameAllowed>
<#if messagesPerField.existsError('username')> ${kcSanitize(messagesPerField.get('username'))?no_esc}
<#if messagesPerField.existsError('email')> ${kcSanitize(messagesPerField.get('email'))?no_esc}
<#if messagesPerField.existsError('firstName')> ${kcSanitize(messagesPerField.get('firstName'))?no_esc}
<#if messagesPerField.existsError('lastName')> ${kcSanitize(messagesPerField.get('lastName'))?no_esc}
<#if isAppInitiatedAction??> <#else>