Added falling back to unencrypted transfor when exceptions occur while login procedure