added 404 handling to the post page