prevents user from entering empty list name when editing it