fixed js validations for edit form