More validation for exercise input.