Changed the way passwords are generated