fixed logon/logoff redirect