Added edit functionality and form validation to section details.