added meaningful error messages for missing title or author fields