updated form validation
validation edit