Fix a bug with Passjoin
add flag to chose basic verification or length verfication