refactored log utils, implemented more validation rules
fixed failing tests