change condition to generate a password

* change weird condition in account creation