update todo list to check input of new item against empty string and string greater than 240 chars.