added validation to Terms