Added validation for history field