Refactoring validation workflow in order to group validation errors and succeeds in two separe arrays