fix Validate_ID function logic.