Validate sign-up request on Node.js server