error message added for invalid titles