Adding success and error messages for repository associations