refactor `validate_activities`