Fix Invalid element is not focused when validate a custom set of inputs

The issue is showErrors method reset errorList state after validate each input so the global state of the validator is not preserved