add support for [type=password]