when checking server to see if its alive check for credentials validity too