[kerry] fix login & server redirect to /groups ajax error issue