resetting session through login flow