Moved security check to electron manager