(CNN) -- A new law in Illinois aimed at curbing cyberbullying, gives schools access to kids' social media account passwords.
But some are saying the law goes too far.
Previously, Illinois schools could take action against students if online bullying occurred, such as something posted on Twitter or Facebook during the school day.
However, with the new law that Illinois legislators approved, school districts and universities in Illinois can demand a student's social media password.
The new law states that if school authorities have a reasonable cause to believe that a student's account contains evidence that a student has violated a school's disciplinary rule of policy, even if posted after school hours.
Recently some school districts in Illinois sent home letters to notify parents and students to explain the new rules.
"To get into a social networking site, either be at school or at home. And it would be password protected. That we would be able to get that password," said Leigh Lewis, a school superintendent.
Some parents who received the notice say the new law raises some concern about privacy.
"It's one thing for me to take my child's social media account in there and open it up for the teacher to look at, or for even a teacher to make a child pull up their social media account, but to have to hand over your password and personal information to your accounts to the school is not acceptable to me," said parent Sara Bozarth.
Some students say they believe there still should be some separation between schools and what students do on their own time and their personal device.
"I think it's unreasonable. I think it's an invasion of privacy to the extent that, if a student wishes to share something with a university, it should be to their discretion," said Nathan Sterling, a college student.
While other students say the new law sends a strong message that threats and cyber-bullying will not be tolerated.
"It'll help stop bullying by raising awareness and stopping those kids that have been bullied or will get bullied in the future," said student Keanna Williams.