added additional check for HTTPS