Update logout functionality :metal: