Log messages refactoring for forms