Separated functionality to be able to put pureValidator in its own file