Updated the posts example with error checking and errors are now passed through to the template.