Add error handling for settings.
Add error handling for create a post.