adding logging and tests around the login story