fix logout and only show edit/delete if you wrote post