Added edit and delete buttons and edit function to the repo.
Added validation function to the repo