changed genSalt() to 12