public function validateFormData(Framework $framework)
    {
        $translationManager = $framework->getInstance('\\Zepi\\Core\\Language\\Manager\\TranslationManager');
        
        $errors = array();
        foreach ($this->getChildrenByType('\\Zepi\\Web\\UserInterface\\Form\\Field\\FieldAbstract') as $field) {
            // Validate mandatory fields
            if ($field->isMandatory() && !$field->hasValue()) {
                $fieldError = new Error(
                    Error::MANDATORY_FIELD, 
                    sprintf($translationManager->translate('%s is a mandatory field. Please fill out the field.', '\\Zepi\\Web\\UserInterface'), $field->getLabel()), 
                    $field
                );
                
                $errors[] = $fieldError;
                $field->addError($fieldError);
            }
            
            $result = $field->validate($framework);
            
            if ($result !== true) {
                $errors[] = $result;
                $field->addError($result);
            }
        }
        
        return $errors;
    }