added post validation