Added dialog box for when the symbol is invalid - informs user and doesn't add the symbol