Improved Node.js sample app with fallback to create user + better error handling