add filter so that only logged in users can create posts