added post validation and created Form partial for posts