added a valid check to the ouput of ensure_bucket_not_updated