I think it's ok for you to have sex with him because you already did it . You're making good decisions overall and getting to a better place. Forgive yourself for loving him - he's been a big part of your life. It's good that you're focusing on what next.
Faith is, at one and the same time, absolutely necessary and altogether impossible. --Stanislaw Lem