Update valid_attributes to use let vs. method