added edit and delete links, validate functions