validate and enable / disable dialog positive button