adds a requireLogin routing hook to render the access denied template if the user doesn't have authorization to access a page, in this case the postNew template