Move set user under no-login mode to session init