updated auth error handling & Data.save()