Add security check to save and get config.