fix issue when deploy db in domain env.

If the domain user is not exist or username is wrong, the script should stop the deployment and show error.