the federal law that required residents aliens to register with the government and made it an offense to advise or belong to any group that advocated the overthrow of the government is :
D. smith act of 1940
the law was created after the world -war I, fearing that many countries will do an espionage by sending their people into United States to destroy us from within