Validated posts and refactored code using partial renders.