Added checking for https in url setting