validation add and modify form