When preparing the cake batter, be sure to add in the flour/milk in 2 separate additions. Why does it matter? By starting with flour and ending with the liquid (in 2 separate additions), this helps build the batter so it can absorb the liquid without curdling (which is also why you beat in the eggs one at a time, blending well before adding the next).