Make sure we only add the error class to 1 element

Now we can also use 'div' as fieldParentSelector if the parent has no class set.