fix unit tests, add login-check
Merge pull request #29 from sepm-depm/UnitTests

Finish Unit Tests for Server