added form validation to teacher registration page / teacher model