make login required to edit or delete a post