Add validation to the exercise form submission