Logout and first version of authentication