Generation of authentication key when creating users