ROANOKE CO., Va. -

A convicted sex offender who was also wanted on assault charges is in jail after he tried to pick up a child from a Roanoke County middle school Tuesday.

35-year-old Michael Anthony used his identification card when picking up his girlfriend’s son from the middle school.

His use of the card alerted the U.S. Department of Justice’s National Sex Offender Database, confirming that he was a convicted sex offender.

The administrator then notified its School Resource Officer, who in turn notified the Virginia State Police Sex Offender Investigative Unit.

Anthony was also wanted by the U.S. Marshals Service on a federal arrest warrant for an assault charge. He had reportedly failed to register as a convicted sex offender.

Anthony was arrested Wednesday after the U.S. Marshal's Service was notified of his whereabouts.

Here’s the full press release:

ROANOKE COUNTY SCHOOLS SECURITY SYSTEM ALERTS ON

ROANOKE CO., Va. – A Roanoke man is behind bars after being taken into custody by the U.S. Marshals Service on a federal arrest warrant. Michael Anthony, 35, of Roanoke, Va., is being held at the City of Roanoke jail without bond. Anthony’s arrest was the result of the quick and cooperative efforts of the Roanoke County Public Schools, Roanoke County Police Department, Virginia State Police and U.S. Marshals Service.

On April 1, 2014, Anthony arrived at a Roanoke County middle school to pickup his girlfriend’s son. Roanoke County public schools require all visitors to check in via its Lobbyguard® security management system. The identification card used by Anthony immediately alerted to the US Department of Justice’s National Sex Offender Database and confirmed Anthony is a convicted sex offender.

The middle school administration notified its School Resource Officer (SRO) with the Roanoke County Police Department. The SRO in turn notified the Virginia State Police Sex Offender Investigative Unit. Further investigation by both departments also revealed Anthony was wanted by the U.S. Marshals Service on a federal warrant for an assault charge.

The U.S. Marshals Service was notified and Anthony was taken into custody without incident on April 2, 2014.

Virginia State Police is conducting its own investigation into the fact that Anthony had failed to comply with state law and register as a convicted sex offender after establishing residency in Virginia.