logout and getCurrentUser methods