Home Minister Rajnath Singh said that the government will enact a law, if necessary, to control such incidents.