Fix double login bug originating from session-reset.