fixed validation for editing enrollment