validation and ajax data changes