Added a check to make sure the key doesn't already exists in keystore