Generate key when creating user [#3]