Fixed error message handling for subforms