refs #10: added a simple decorator to check authentication on add_post
page