moved validator interface to corresponding namespace