adds authentication for creating posts and deleting comments