move validate into own module