error handling in challenge form submission