change createRandomPassword method