Adds error and success messages