Added validation methods to posts, refactored post views to use a form partial.