Add validate function to dist files #5