Fixed bug which generated same random password for all users.