Fixed error (was done for debugging purposes).
Some changes:
 * Changed password generator, using the same procedure as the signup.
 * Added a password_length parameter to customize the password length.
 * Cosmetic changes in the UI of the security tab.