Added validations to pupil