add validations to api client