Likely it's the pred causing your middle of the night pee's, if it's colon-related poos then that's related to flaring. Kindof darned one way or the other since many people have trouble sleeping due to UC urgency in the night. Which function is getting you up?
Since getting my inflammation greatly reduced insomnia is gone for me, but....last night I woke up. Why? Becuase I ate something my colon has always had trouble with, dairy. So I paid for it. But I know which foods will cause this to happen so it's not a mystery.
You'll have to figure out whether it's the prednisone or something else causing your sleep disruption.
I agree that eating late can be the problem but hard to be bad cop when the munchies call my name.
In remission April 2010 after 10 years of UC with no remission ever
Jan 2010 began SpecCarbDiet (modified to remove dairy, fruit & juices,)
Gluten-free=bleeding stopped in 3 days, 95% remission in 5.5 months on SCD
SCDiet: Gluten/grain-free, starch-free, low carb, honey as sweetener
(9)Balsalazide+(6)Citrucel, mesalamine enema as needed
Spinach & sunflower seeds daily, (1) VSL#3 nightly