bugfix in safeword/duresscode validation