[login] login code extracted to action; first unit test added + make updated to run all tests from directory