compiled with jar file and changed validation method