add validate premition for image/gif on cartificate model