work with client validate