I made it so the error message gets removed when a new image is uploaded.