[Bug 778088] [NEW] User can set a password with trailing whitespace which prevents login.