Error on the New Hosted Login Page does Not Disappear when a New Value is Typed Loading

Problem statement

The error on the hosted new login page does not disappear when a new, valid value is typed. How can we get this error to clear once a valid email address is entered?

Steps to reproduce

  1. On the signup page, type an invalid email.
  2. The widget shows an error message: “Email is not valid”.
  3. Enter a new email. The error is still visible until pressing the Continue button.


The following custom page template can be used to hide the error message when the user types a new input. The template can bu updated with the management API. The custom template update only works with the custom login domain.

<!DOCTYPE html><html>
    {%- auth0:head -%}
        window.onload = function() {
          if (document.getElementById('email')) {
              if (document.getElementById("error-element-email")) {
                document.getElementById("error-element-email").style.display = "none"

          if (document.getElementById('username')) {
              if (document.getElementById("error-element-username")) {
                document.getElementById("error-element-username").style.display = "none"

          if (document.getElementById('password')) {
              if (document.getElementById("error-element-password")) {
                document.getElementById("error-element-password").style.display = "none"
    {%- auth0:widget -%}