Changing generate_secret_key() method to return a string of the randomly generated key