add validations to posts forms