add validation for post and advertise