fixed the form validation for challenges.