ONLINE I GUESS HOPE THIS HELPS
A country needs rules about citizens cause in reality you cant have random people, bad record or not, coming in your country and just being a citizen instantly without any proof of trust, little do they know they could be a terrorist with the rights of a citizen just cause theirs no way to justify who's one or not.
They were known as the slave codes
There was a few of these laws passed and they were used to determine when and for how long and how would someone become a slave. This included things like looking at the status of a mother, or looking at the status of their religion, or anything similar, including differentiation between indentured servitude and slavery.
Because it was cold it was hard to do things by yourslef everyone had to work togerher