Add API validation check on connection initialization