making fn to check if pandigital