Doing more checks for https