Fix log options.
Fix inconsistent body constant.
Add more validation logic.