Fix for login with Connection type: Auto