logging in works, written unit test