validate media title before inserting attachments