Allow users to logout properly and set their role