fixing issue with logout redirect to login.