added to alert function

It will now prevent users from entering a blank space as a list item.