Adding the generic validation function in pryvType