Add security check to the save system