checks for https.