Make validAttributes private