add custom validations to posts