added email validation to teachers