Fix issue on login with uppercase login name
Change log format to help debug