login logging and a little more