The law was signed after a video was posted on social media showing others how to break in and take over unoccupied homes.