fixed error with users who weren't signed in being able to edit posts