A Validity-Based Approach for Feature Selection in Intrusion Detection Systems