Generating API key on user creation to avoid an extra step and error with unique id constraint on table