The States that voted to secede voted on the state level, not the national level.
Those congressmen of those states attempting to secede resigned from the Congress.
"Those congressmen of those states attempting to secede resigned from the Congress."
And where is the evidence that this was unlawful? Lincoln wasn't even most on the ballots in the South and he still won.