Bugfix - fetching password value

The patch for issue #2 had a minor flaw where you could not use .val()
on password fields.  I've updated the test to confirm the problem and
then changed the code.  I've also changed how the function works a tiny
bit so that this code minifies better.