added basic auth and fixed bug on delete method