Make validation method private.