Add an explicit error message in case of too short password during login (bug 1067673)

strange indent, why not have the dict all on the next line?