when registering auto go to login