Added more auth and fixed a deletion bug