moved validators from util to model package