new testrewrite for auth and main: to solve live login error