Uniqueness for the Dirichlet Problem via Maximum Principle