Add support for password input fields

This makes password input fields act like text input fields as previously they didn't pick up the value attribute. Also included are tests to assert that this acts correctly