validation of edit method completed