Added validation for when the attribute 'value' is empty