improve behaviour when entering password