I'm pretty sure we could reuse this class more generally, maybe for the logout : I will think about it...