Added authentication and user check for delete.