add validations for posts