I had a blank page issue as well. I posted how I fixed it here:
This may work for you.
As for the login and logout, this standard for imap clients. They will only stay connected until the requested task is completed, then logout until the next requested task. (such as check mail, create a folder, delete mail, send mail, etc.) You may see many login / logout lines from the same user during a single session.