In case any person or persons claiming title to the land opposed the confirmation of sale, then the court shall try the validity of the sale and the court shall:
(1) Confirm the sale if the sale was valid; or
(2) Annul the sale if the sale has been made contrary to law.