Fixed create post bug where the error message would cause a crash