Custom Error message on UI

Hi,

I’m implementing custom registration flow and i looking for a way to display custom error message in case user input are not validated ?

 errors.add(new FormMessage(RegistrationPage.FIELD_EMAIL, Messages.INVALID_EMAIL));
         context.error(Errors.INVALID_REGISTRATION);
         context.validationError(formData, errors);

I tried this but error is only shown in console log and not in UI.

Thanks,

Dan

Sorry when i Use Keycloak Base Theme I can show error message, but when i’m using mine alert error message are not showing do you know why ?