combine sign-in with register to index