Added security in the make_publisher, corrected the security decorator to actually raise the proper error.