CHICAGO -- A Cook County Jail guard has resigned after 22 years on the job - and it's all because of porn.Investigators said surveillance video shows Oscar Taylor, 53, watching a porn video on his cell phone with two inmates inside the jail's barbershop.An internal investigation was launched at Cook County Jail after authorities received word that contraband was being brought into the Division 6 barbershop. Taylor was supposed to be monitoring inmates while they had their hair cut, the sheriff's office said.Sheriff's investigators caught Taylor watching the pornographic videos with inmates 39-year-old Tyrone Noel and 27-year-old William Taylor. Oscar Taylor and William Taylor are not related.Investigators also found a firearm in Officer Taylor's car. His FOID card is currently revoked because of an incident that occurred when he wasn't on duty.Taylor, of Oak Park, was charged with three counts of unauthorized bringing of contraband into a penal institution, aggravated unlawful use of a weapon and aggravated unlawful use of a weapon for carrying an uncased revolver in close proximity of ammunition.Tyrone Noel and William Taylor were both charged with possession of contraband.Oscar Taylor resigned shortly after being charged, the sheriff's office said. He was released on electronic monitoring after his bond hearing Wednesday.