Added authentication for file upload