checks if name and path are not whitespace or null before adding or editing startup entry
checks if startup entry exists before adding a new one
added try-catch blocks around code where startup entries are removed or added