Fixes #19

check if the password is empty
If I get to vote, I vote for using ; in javascript.