Vaidation for editing enrollment records. Fix #811