credentials mismatch: detect and crash in DEBUG mode only