add validation to semester