splice login and nonlogin