validation edit