added validations to teacher table