add validation on ui components