Refactored post model to reduce duplication in validator methods