working on login auto after register