updated validation lib and added input lib