modal and vlidation