fixing bug for form validation on badge creation