Given that \(b\) is a constant, what value of \(b\) would satisfy the following equation? $$(x^2+bx-1)(x+1)=x^3+3x^2+x-1$$