updated logic for omniauth registration