add validation for advertisements