input validation for contribution modal