rel 19
fix invlaid login
add unit tests
complete conversing to clousre unit test style