validate nicknames and sanitize chat input