Remove TODO and add check for console in createUser().