Fixed command validation and added a save_log command