fixing an error i introduced that broke render after an invalid post was submitted