Added validation methods to post, refractored post views