validate sign-up request in Node.js server

1. check if the chosen username is too long
2. check if the chosen username is blacklisted
3. check if the two passwords match