Minor changes to server

- limit number of received messages to 20
- limit password, username and email length