started validate fxn
added missing xml param in pwt_validate fxn