timob-11431: set input type before transformation method to make sure password transformation work properly
Merge pull request #3634 from pingwang2011/timob-12155

timob-12155: Backport: TIMOB-11431