Added password complexity constant
Changes to coding style
Hotfix of server variable name