Login and Logout redirect fixed