log formatted correctly and login problem semi-fixed