Changed the password evaluation to == 0 instead of > -1

I changed the password evaluation to ==0 instead of > -1 otherwise a blank password would work