finnished intergrating and testing validator