fixed callback validation