Who was president when Texas seceded? If we argue about the president having to defend the Constitution and thus the union of the states then we have to look at the first wave of session and when every single state in that wave left.

As we have argued in other threads the Southern states were not the only states to consider secedeing, they were the only ones to do so. It's not until after the war does it appear to become unconstitutional to secede.