Fixed integer overflow for pass length > 6

* Changed from int to long in some places to avoid overflow for big
password lengths
* Added anti-idiot in password length dialog