added test to ensure only users can edit posts