fix inputtype for password

set the input type after setting the text colors as it actually breaks the inputtype password
Fix indentation
Merge pull request #1 from heinrisch/patch-2

Patch 2