add login required to delete and publish file