completed edit links and updated saveForm function so that all new and existing entries will be validated first before reaching the saveForm function