many small changes + test additions
Finish sign in