validation working only on deafult target. part done