Minor code-style improvements. to make code more compact.
Some code fixes in the SocketIO-adapter.
Fix in password login-validation.