added validation methods to post, and created form partial