adds payload validation