add more validation for clientconfig