Add isAuthenticated() to check_token