added support for input[type=password]