1-1, Updated logout behaviour to avoid using a state