Add validateCredentials