adds facility for hiding and showing password