when school is invalid , it's teacher can not be logged in