add validations to client