Fixes #19

check if the password is empty
I don't think === is required here if .text is known to be a string