New legislation to prevent illegal workers