Adding validation to add pupil

Adding validation to add pupil