creates an api key for the user after a user is created