validation of tree, resetting fields/map after error, input pattern. [#51186365, #51186501]