fixed hasCredentials