Added compatability with reentrant login methods.