Add validation before remove teaching plan