properly reading attribute default values, checkbox & password input type support