validating unique flag names