implemented unlinking accounts and logging out