Logon now takes place without blank screen

Logging on now works without requiring a page refresh.
Fixes #25