Function to add and remove authorized and titulars and error message