A state lawmaker from the metro-east is pushing legislation that he says will make it more difficult for schools to acquire students’ passwords to their social media accounts.

Rep. Dwight Kay, R-Glen Carbon, has filed legislation that would amend a state law that went into effect in January 2014. That original law states that a school “may request or require a student to provide a password or other related account information in order to gain access to the student’s account or profile on a social networking website.”

Kay has filed legislation, House Bill 4082, that would add three words — “upon court order” — to the existing law. Kay said the change would prevent schools from getting a student’s password unless a judge gives approval.