Added support for Password-like text fields

@koentsje please review