ask-password: when the user types a overly long password, beep and refuse

Based on a similar patch from David Härdeman.
ask-password: modernizations