validation fixes and getting xpath from iframe