Changed all 'isLoggedIn' functions to use type hinting.