validating posts