Nonlocal boundary value problems with two nonlinear boundary conditions