edit validate