getCurrentUser and logout method