Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1127124 : Handle invalid passwords early.

Also use a simpler env var to hold the password.