Key generation on first login