fix #461 PasswordField widget broken

Fixing a problem that is breaking the PasswordField widget inside sample page on ariatemplates.com. Adding also a widget test case.