Implemented client login and some tests for it. One step forward!