better error handling for empty title