return auth error instead of 500 while adding backend