Fix for spaces only passwords.