Fixed sign out functionality