added logOut option