Added authentication for new-post request.