added dat validation for edit