Better handling of empty passwords.