make errors partial for posts and categories