Masks the last character when entering passwords