fixed login, added logger