Common validator constructor

resolves #7