fixed crach when create new post.
Merge pull request #43 from kodamaa/validate_error

fixed crach when create new post.