before_action added to posts_cont -- extracted @post form into partial -- extracted @post.errors into partial