hub/adc: Allow login on less secure hubs + fix potential stack overflow