Password control & HTML generation

for test code - search "TEST TEST TEST"