Fixes #19

check if the password is empty
Please keep a space between `if` and the opening `(` also ideally you should use a `===` compare (it does typesafe comparision (the comparision above is not ideal either... but no need to fix that in this commit)).