check if the scheme is one of http or https