Stable Login/Logout and redirect