Added a check to make sure that the secret keys are generated