Add validation for posts