login now uses persontable and did some more logging