Fixed issues with JavaScript created password fields.