validate_page_title method updated to log messages