Added validation to posts, refactored form partial