Unable to create new sheet through google script using app

I was followed few community topic and tried to create sign in through google sheets.

If user name already exists, it ways the result,
Multiple id creation also stopped by using device id.

But the problem is, i new sheet didnt create by using this code.
What mistake is present?