Add validate library