fix validation constraints for post and topic models