Fix error_check for HTTPS users