Set up functions for validation and for editing links, error messages.