When trying to add an account, an error occurs and the application closes 